package com.geotmt.billingcenter.modules.params.service.impl;

import com.geotmt.billingcenter.common.vo.params.*;
import com.geotmt.billingcenter.modules.params.mapper.ParamMapper;
import com.geotmt.billingcenter.modules.params.service.ParamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description 查询条件 Service
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/20 20:50
 * @Version     v1
 **/
@Service
public class ParamServiceImpl implements ParamService {

    @Resource
    private ParamMapper paramMapper;

    @Override
    public List<Product> productList() {
        return paramMapper.productList();
    }

    @Override
    public List<Company> companyList(String productCode) {
        return paramMapper.companyList(productCode);
    }

    @Override
    public List<Cuser> userList(String productCode, Integer companyId) {
        return paramMapper.userList(productCode, companyId);
    }

    @Override
    public List<InnerInterface> innerIntegerList(String productCode, Integer companyId, Integer userId) {
        return paramMapper.innerIntegerList(productCode, companyId, userId);
    }

    @Override
    public List<DataSource> dsList() {
        return paramMapper.dsList();
    }

    @Override
    public List<OutInterface> outInterfaceList(Integer dsId) {
        return paramMapper.outInterfaceList(dsId);
    }

    @Override
    public Cuser userGetById(int id) {
        return paramMapper.userGetById(id);
    }
}
